package com.twoGroup.boot.service;


import com.twoGroup.boot.pojo.Goods;
import com.twoGroup.boot.pojo.GoodsAndShopAndGoodsTypeAndGoodsBrand;
import com.twoGroup.boot.pojo.GoodsImg;
import com.twoGroup.boot.pojo.Shop;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public interface MerchantService {

    public int addShop(Shop shop);

    public int shutDownShopById(int shopId);
    //增加商品
    public int addGoods(Goods goods);

    public int deleteGoods(int goodsId) throws IOException;

    public int updateGoods(Goods goods);
    //判断店铺名重复
    public boolean judgeShopName(String shopName);

    public boolean judgeShop(int shopId);

    public Goods queryForGoods(int goodsId);

    public int addImg(GoodsImg goodsImg);

    public List<GoodsImg> queryForGoodsImg(int goodsId);

    public GoodsImg queryForGoodsImgByImgId(int imgId);

    public int deleteImgByImgId(Integer imgId);

    public int queryForUserShop(int userId);

    public List<GoodsAndShopAndGoodsTypeAndGoodsBrand> queryForGoodsAll(int userId);

    public List<Shop> queryForUserShopById(int userId);

    List<Integer> queryForMerchant();
}
